home *** CD-ROM | disk | FTP | other *** search
/ Disc Station 7 & 8 (Korea) / Disc Station Vol 7+8 (Korea).img / ETC / IE401_H / IE4SHL95.CAB / folder.htt < prev    next >
Text File  |  1997-11-26  |  12KB  |  357 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %THISDIRPATH%\folder.htt (if customized) or
  4.  * %TEMPLATEDIR%\folder.htt (if not customized).
  5.  -->
  6.  
  7. <html>
  8.     <style>
  9.         body        {font: 9pt/11pt \AD74\B9BC; margin: 0}
  10.         #Banner        {position: absolute; width: 100%; height: 88px; background: URL(res://webvw.dll/folder.gif) no-repeat top left}
  11.         #MiniBanner    {position: absolute; width: 100%; height: 32px; background: window}
  12.         #Icon        {position: absolute; left: 11px; top: 12px; width: 64px; height: 64px}
  13.         #FileList    {position: absolute; left: 30%; top: 88px; width: 1px; height: 1px}
  14.         #Media        {margin-left: 20px; margin-top: 10px}
  15.         #Panel        {position: absolute; top: 88px; width: 30%; background: window; overflow: auto}
  16.         #PieChart    {width: 100px; height: 50px; margin-top: 10px}
  17.         #Thumbnail    {width: 160px; height: 160px; margin-top: 0px}
  18.         #Status        {margin-left: 20px}
  19.         p        {margin-left: 20px; margin-right: 8px}
  20.         p.Title        {font: 16pt/16pt \AD74\B9BC; font-weight: bold; color: #0099FF}
  21.         p.Warning    {font-weight: bold; color: red}
  22.         p.Links        {margin-top: 4px}
  23.         a:link        {color: #FF6633}
  24.         a:visited    {color: #0099FF}
  25.         a:active     {color: black}
  26.     </style>
  27.  
  28.     <head>
  29. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ks_c_5601-1987">
  30.         <!-- allow references to any resources you might add to the folder -->
  31.         <!-- (a "webbot" is a special wrapper for FrontPage compatibility) -->
  32.         <!-- webbot bot="HTMLMarkup" tag="base" startspan -->
  33.         <base href="%THISDIRPATH%\">
  34.         <!-- webbot bot="HTMLMarkup" endspan -->
  35.  
  36.         <script language="JavaScript">
  37.             var L_Intro_Text    = "╛╞└╠─▄└╗ ╝▒┼├╟╧╕Θ ╝│╕φ└╗ ║╝ ╝÷ └╓╜└┤╧┤┘.";
  38.             var L_Multiple_Text    = " ░│├╝ ╝▒┼├.";
  39.             var L_Size_Text        = "┼⌐▒Γ: ";
  40.             var L_FileSize_Text    = "└ⁿ├╝ ╞─└╧ ┼⌐▒Γ: ";
  41.             var L_Delimiter_Text    = ",";
  42.             var L_Bytes_Text    = " ╣┘└╠╞«";
  43.             var L_Attributes_Text    = "╝╙╝║";
  44.             var L_Codes_Text    = "RHSACE";
  45.             var L_ReadOnly_Text     = "└╨▒Γ └ⁿ┐δ";
  46.             var L_Hidden_Text    = "╝√▒Φ";
  47.             var L_System_Text    = "╜├╜║┼█";
  48.             var L_Archive_Text    = "▒Γ╖╧";
  49.             var L_Compressed_Text    = "╛╨├α";
  50.             var L_Encrypted_Text    = "╛╧╚ú╚¡";
  51.             var L_NoAttributes_Text = "(╝│┴ñ╡╟┴÷ ╛╩└╜)";
  52.             var timer        = 0;
  53.             var wantMedia        = false; // cool, but may hinder media file manipulation
  54.  
  55.             function FixSize() {
  56.                 // this function handles fixed panel sizing and collapsing when the window resizes
  57.                 var hideTop    = 200;
  58.                 var hideLeft    = 400;
  59.                 var miniHeight    = 32;
  60.                 var ch        = document.body.clientHeight;
  61.                 var cw        = document.body.clientWidth;
  62.  
  63.                 if (hideTop > ch) {
  64.                     document.all.Banner.style.visibility = "hidden";
  65.                     document.all.MiniBanner.style.visibility = "visible";
  66.                     document.all.FileList.style.top = miniHeight;
  67.                     document.all.Panel.style.top = miniHeight;
  68.                 } else {
  69.                     document.all.Banner.style.visibility = "visible";
  70.                     document.all.MiniBanner.style.visibility = "hidden";
  71.                     document.all.FileList.style.top = (document.all.Banner.offsetHeight - 32) + "px";
  72.                     document.all.Panel.style.top = (document.all.Banner.offsetHeight) + "px";
  73.                     document.all.Rule.style.width = (cw > 84 ? cw - 84 : 0) + "px";      
  74.                 }
  75.                 if (hideLeft > cw) {
  76.                     document.all.Panel.style.visibility = "hidden";
  77.                     document.all.FileList.style.pixelLeft = 0;
  78.                     document.all.FileList.style.pixelTop = document.all.Panel.style.pixelTop;
  79.                 } else {
  80.                     document.all.Panel.style.visibility = "visible";
  81.                     document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth;
  82.                 }
  83.                 document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft;
  84.                 document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop;
  85.                 document.all.Panel.style.pixelHeight = ch - document.all.Panel.style.pixelTop;
  86.             }
  87.  
  88.             function FormatNumber(n) {
  89.                 var t = "";
  90.                 var i, j = 0;
  91.                 for (i = n.length - 1; i >= 0; i--) {
  92.                     t = n.charAt(i) + t;
  93.                     if (i && ((++j % 3) == 0))
  94.                         t = L_Delimiter_Text + t;
  95.                 }
  96.                 return t;
  97.             }
  98.  
  99.             function Init() {
  100.                 // call our FixSize() function whenever the window gets resized
  101.                 window.onresize = FixSize;
  102.                 FixSize();
  103.                 Info.innerHTML = L_Intro_Text;
  104.             }
  105.         </script>
  106.  
  107.         <script language="JavaScript" for="FileList" event="SelectionChanged">
  108.             // this script updates the left info Panel when you select icons
  109.             var items    = FileList.FocusedItem;
  110.             var fldr    = FileList.Folder;
  111.             var name;
  112.             var data;
  113.             var text;
  114.             var title;
  115.             var size = 0;
  116.             var i;
  117.  
  118.             // cancel any pending status message
  119.             if (timer) {
  120.                 window.clearTimeout(timer);
  121.                 timer = 0;
  122.             }
  123.  
  124.             // erase any visible thumbnail since the selection changed
  125.             document.all.Thumbnail.style.display = "none";
  126.             document.all.Status.style.display = "none";
  127.  
  128.             // stop & destroy any media player
  129.             if (wantMedia)
  130.                 document.all.Media.innerHTML = "";
  131.  
  132.             data = FileList.SelectedItems().Count;
  133.             if (data == 0) {
  134.                 // nothing selected?
  135.                 Info.innerHTML = L_Intro_Text;
  136.                 return;
  137.             }
  138.             else if (data > 1) {
  139.                 // more than one item selected?
  140.                 text = data + L_Multiple_Text + "<br>";
  141.                 if (data <= 100) {
  142.                     for (i = 0; i < data; i++)
  143.                         size += FileList.SelectedItems().Item(i).Size;
  144.                     if (size)
  145.                         text += "<br>" + L_FileSize_Text + FormatNumber(size.toString()) + L_Bytes_Text + "<br>";
  146.                     if (data <= 16)
  147.                         for (i = 0; i < data; i++)
  148.                             text += "<br>" + FileList.SelectedItems().Item(i).Name;
  149.                 }
  150.                 Info.innerHTML = text;
  151.                 return;
  152.             }
  153.  
  154.             // name
  155.             name = fldr.GetDetailsOf(items, 0);
  156.             text = "<b>" + name + "</b>";
  157.  
  158.             // type
  159.             data = fldr.GetDetailsOf(items, 2);
  160.             if (data)
  161.                 text += "<br>" + data;
  162.  
  163.             // date
  164.             data = fldr.GetDetailsOf(items, 3);
  165.             if (data)
  166.                 text += "<br><br>" + fldr.GetDetailsOf(null, 3) + ":<br>" + data;
  167.  
  168.             // size?
  169.             size = FileList.SelectedItems().Item(0).Size;
  170.             if (size)
  171.                 if (size < 1000)
  172.                     text += "<br><br>" + L_Size_Text + size + L_Bytes_Text;
  173.                 else {
  174.                     data = fldr.GetDetailsOf(items, 1);
  175.                     if (data)
  176.                         text += "<br><br>" + fldr.GetDetailsOf(null, 1) + ": " + data;
  177.                     else
  178.                         text += "<br><br>" + L_Size_Text + FormatNumber(size.toString()) + L_Bytes_Text;
  179.                 }
  180.  
  181.             // extra details?
  182.             for (i = 4; i < 10; i++) {
  183.                 title = fldr.GetDetailsOf(null, i);
  184.                 if (!title)
  185.                     break;
  186.                 data = fldr.GetDetailsOf(items, i);
  187.                 if (title == L_Attributes_Text) {
  188.                     var code;
  189.                     var s = "";
  190.  
  191.                     text += "<br><br>" + title + ": ";
  192.                     for (i = 0; i < 6; i++) {
  193.                         code = L_Codes_Text.charAt(i);
  194.                         if (data.indexOf(code) > -1) {
  195.                             if (s)
  196.                                 s += ", ";
  197.                             if (i == 0)
  198.                                 s += L_ReadOnly_Text;
  199.                             else if (i == 1)
  200.                                 s += L_Hidden_Text;
  201.                             else if (i == 2)
  202.                                 s += L_System_Text;
  203.                             else if (i == 3)
  204.                                 s += L_Archive_Text;
  205.                             else if (i == 4)
  206.                                 s += L_Compressed_Text;
  207.                             else if (i == 5)
  208.                                 s += L_Encrypted_Text;
  209.                         }
  210.                     }
  211.                     if (!s)
  212.                         s = L_NoAttributes_Text;
  213.                     text += s;
  214.                 }
  215.                 else if (data)
  216.                     text += "<br><br>" + title + ":<br>" + data;
  217.             }
  218.  
  219.             // tip?
  220.             data = fldr.GetDetailsOf(items, -1);
  221.             if (data && data != name) {
  222.                 var start;
  223.                 var end;
  224.                 var theLink;
  225.                 var a;
  226.  
  227.                 // parse lines for Office files without breaking links below
  228.                 a = data.split("\n");
  229.                 data = a.join("<br>\n");
  230.  
  231.                 // look for embedded links
  232.                 text += "<br><br>";
  233.                 start = data.indexOf("http://");
  234.                 if (start < 0)
  235.                     start = data.indexOf("file://");
  236.                 if (start < 0)
  237.                     text += data;
  238.                 else {
  239.                     end = data.indexOf(" ", start);
  240.                     if (end < 0)
  241.                         end = data.length;
  242.                     if (start > 0)
  243.                         text += data.substring(0, start - 1);
  244.                     theLink = data.substring(start, end);
  245.                     text += theLink.link(theLink);
  246.                     if (end < data.length)
  247.                         text += data.substring(end + 1, data.length);
  248.                 }
  249.             }
  250.  
  251.             // replace Info with the new text
  252.             Info.innerHTML = text;
  253.  
  254.             if (wantMedia) {
  255.                 // show media preview or thumbn